﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using CommonLib;
using CommonLib.Extension;

public class GameStateGamePlay : GameStateBase 
{
	public override string StateKey => "GamePlay";
	protected GamePlayFacade Facade { get; set; }

	public override void EnterState()
	{
		base.EnterState();
		Facade = GamePlayFacade.Instance;
		Facade.Init();
	}


	public override void StateUpdate()
	{
		base.StateUpdate();
		Facade.DoUpdate(Time.deltaTime);
	}


	public override void EndState(IGameState newState)
	{
		base.EndState(newState);
		Facade.DoEnd();
	}
}
